import WxmpRsa from 'wxmp-rsa'

const rsa = new WxmpRsa()
const publicKey = `
  -----BEGIN PUBLIC KEY-----
  MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8StLtc9nT3LoMcOxiwwIgu77ytwUJWq+9WNeb1Ddk/6B9jxhezd/hGEOdzppcF9fTahAdiPxuoF2PIven1Ym7FuBUxpi0Alo6oofxZ+nol33sUxLfC4dIg5aB7S7sSaY+89lXp2tlX+rN+pJsObbQHSUVoIiI6xN2jjsGXuSqbwIDAQAB
  -----END PUBLIC KEY-----
`
rsa.setPublicKey(publicKey)

const encryptLong = (str) =>{
   return rsa.encryptLong(str)
}

export {
	encryptLong
}
